/**
 * Upper case first char
 * @param {String} string
 */
export default function asIp(number) {
  var ip = []
  if (typeof number === 'string' && number.indexOf('.') !== -1) {
    ip = number.split('.')
  } else {
    for (var i = 0; i < 4; i++) {
      var _s = (number << parseInt(i * 8)) >>> 24
      ip.push(_s)
    }
  }
  return ip.join('.')
}
